<template>
	<FancyList :api-url="url" :per-page="10">
		<template #item="{body, username, likes}">
			<div>
				<p>{{body}}</p> 
				<p>by {{username}} | {{likes}}</p>
			</div>
		</template>
	</FancyList>
</template>

<script setup>
	 import FancyList from '@/components/FancyList.vue'
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
